package com.epalmpay.handler;


import java.util.Map;

import org.springframework.stereotype.Component;

//import com.github.binarywang.demo.spring.config.WxConfig;


import me.chanjar.weixin.common.session.WxSessionManager;
import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutTextMessage;

/**
 * 
 * @author Binary Wang
 *
 */
@Component
public class NullHandler extends AbstractHandler {

    @Override
    public WxMpXmlOutMessage handle(WxMpXmlMessage wxMessage,
            Map<String, Object> context, WxMpService wxMpService,
            WxSessionManager sessionManager) {
    	System.out.println("url事件");
    	WxMpXmlOutTextMessage m
        = WxMpXmlOutMessage.TEXT()
        .content("url事件")
        .fromUser(wxMessage.getToUser())
        .toUser(wxMessage.getFromUser())
        .build();
	    logger.info("url事件r" + m.getContent());
	    return m;
    }

//    @Override
//    protected WxConfig getWxConfig() {
//        return null;
//    }

}
